package lab02.test25;
import com.sun.org.apache.xpath.internal.SourceTree;

import java.util.Scanner;
public class Test25 {
    public static void main(String[] args) {
        try {
            System.out.println("请输入两个数:");
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int c = num1 / num2;
            System.out.println(c);

        } catch (ArithmeticException e) {
            System.out.println("除数为零");
        }
    }
}
